
<div class="content">
    <div class="panel panel-default panel-intro">
        <div class="panel-body">
            <div id="" class="tab-content">
                <div class="tab-pane fade active in" id="one">
                    <div class="widget-body no-padding">
                        <div class="bootstrap-table">
                            <div class="fixed-table-toolbar">
                                <div class="bs-bars pull-left">
                                    <div id="toolbar" class="toolbar" style="position: relative;">
                                        <a href="/admin/coupon/coupon_add" class="btn btn-success btn-add " title="添加"><i class="fa fa-plus"></i> 添加</a>
                                    </div>
                                </div>
                                <table id="" class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%">
                                    <thead>

                                    <tr>
                                        <th class="bs-checkbox " style="text-align: center; vertical-align: middle;width:3%;height: 45px;" data-field="0">

                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">ID</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">创建人id</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">创建者用户名</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">抵扣金额</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">币种</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">使用开始时间</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">使用结束日期</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">劵总量</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">状态</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">折扣限定</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">限定金额</div>
                                            <div class="fht-cell"></div>
                                        </th>
                                        <th style="text-align: center; vertical-align: middle;width:4%;" data-field="id">
                                            <div class="th-inner ">操作</div>
                                            <div class="fht-cell"></div>
                                        </th>


                                    </tr>
                                    </thead>
                                    <tbody data-listidx="0">
                                    {volist name="couponRes" id="vo"}
                                    <tr data-index="0">
                                        <td class="bs-checkbox "></td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.id}</td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.opid}</td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.opname}</td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.price}</td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {if condition="$vo.currency eq 0"}
                                                欧元
                                            {/if}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.start_time|date="Y-m-d H:i:s",###}</td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.end_time|date="Y-m-d H:i:s",###}</td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.num}</td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {if condition="$vo.status eq 0"}
                                            上架
                                            {else/}
                                            下架
                                            {/if}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            {if condition="$vo.discounttype eq 0"}
                                            所有产品可用
                                            {else/}
                                            折扣产品不可用
                                            {/if}
                                        </td>
                                        <td style="text-align: center; vertical-align: middle; ">{$vo.pricetype}</td>
                                        <td style="text-align: center; vertical-align: middle; ">
                                            <a href="/admin/coupon/coupon_edit?id={$vo.id}" class="btn btn-success btn-edit btn-disabled" title="编辑"><i class="fa fa-pencil"></i> 编辑</a>
                                            <a href="/admin/coupon/coupon_product?cid={$vo.id}" class="btn btn-success btn-add " title="查看"><i class="fa fa-plus"></i> 查看关联产品</a>
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>